<h1>New reservation</h1>

<% form_for(@reservation) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :arriveDate %><br />
    <%= f.date_select :arriveDate, :start_year => (Date.today.year), :end_year => (Date.today.year + 1) %>
  </p>
  <p>
    <%= f.label :exitDate %><br />
    <%= f.date_select :exitDate, :start_year => (Date.today.year), :end_year => (Date.today.year + 1) %>
  </p>
  <p>
    <%= f.label :numAdults %><br />
    <%= f.text_field :numAdults %>
  </p>
  <p>
    <%= f.label :numChildren %><br />
    <%= f.text_field :numChildren %>
  </p>
  <p>
    <%= f.label :room_id %><br />
    <%= f.text_field :room_id %>
  </p>
  <p>
    <%= f.label :guest_id %><br />
    <%= f.text_field :guest_id %>
  </p>
  <p>
    <%= f.label :isChecked %><br />
    <%= f.check_box :isChecked %>
  </p>  
  <p>
    <%= f.submit 'Create' %>
  </p>
<% end %>

<%= link_to 'Back', reservations_path %>